import { Entity, PrimaryGeneratedColumn, OneToOne, Column, JoinColumn } from 'typeorm';
import { User } from './User.dao';
@Entity()
export class UserDetail {
  @PrimaryGeneratedColumn()
  id: number

  @OneToOne(() => User, user=>user.userDetail)
  @JoinColumn()
  user: User

  @Column()
  phone:string
}
